package morning.cat.demo.controller;

import com.jfinal.core.Controller;

/**
 * XXX
 *
 * @author mengzhang6
 * @date 2018/12/7 9:32
 */
public class HelloController extends Controller {

    /**
     * http://localhost/hello
     */
    public void index() {
        renderText("Hello GGGW.");
    }

    /**
     * http://localhost/hello/methodName/name-age
     */
    public void methodName() {
        String name = getPara(0);
        String age = getPara(1);
        renderText("Hello ." + name + " " + age);
    }
}
